package com.superc.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("HttpProxyService")
public interface HttpProxyService extends RemoteService {
	
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static HttpProxyServiceAsync instance;
		public static HttpProxyServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(HttpProxyService.class);
			}
			return instance;
		}
	}
	
	
	String query(String url,String method,String postData) throws IllegalArgumentException;
	
}
